Add CI (tests + black, secured, .NET 8/10 matrix) for v7.2#33
Merged
Conversation
- Fix stale test_match_1 (framework_version default is now empty/unenforced) - Make the external-server provider tests cwd-independent and self-contained - Generate the secured test's certificate in-process (tests/certificates.py) - Add pin_framework_version helper so CI can pin the server's .NET runtime
- Runs 'unittest discover' + 'black --check' on push/PR to v7.2
- Matrix: Python {3.9,3.13} x OS {ubuntu,windows} x .NET {8 default, 10 forced}
- Fetches the bundled RavenDB server via setup.py sdist; black line-length 120 via pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Actions workflow running the test suite + a
blackcheck on push / PR tov7.2.CI (
.github/workflows/tests.yml) — 3 jobs--fx-version(envRAVENDB_TEST_FRAMEWORK_VERSION→tests.pin_framework_version). Verified RavenDB 7.2 runs on .NET 10.pip install -e .→black --check .(120 viapyproject.toml) → fetch bundled server (setup.py sdist) →unittest discover.Secured/HTTPS test
The secured test generates its own self-signed certificate in-process (via the
cryptographydependency) with the extensions RavenDB requires (digitalSignature+keyEncipherment,serverAuth+clientAuthEKU, SANlocalhost+127.0.0.1). So it always runs — every job including Windows — with no skip, no env vars, no hardcoded cert paths, and no openssl step in CI.Test fixes / cleanup
C:\RavenDB Clients\...developer paths (the secured test is now self-contained).test_runtime_framework_version_matcher.test_match_1— updated for the current empty/unenforcedframework_versiondefault (was stale).test_custom_provider— zip/directory external-server tests made cwd-independent and self-contained.Verified locally (Python 3.12, fresh venv)
Full suite green on .NET 8 and .NET 10:
9 tests OKeach, with the secured test running (not skipped). NoRAVEN_LICENSEneeded (community edition).